package com.sdrongyou.tms.dto;

import cn.zhxu.bs.bean.DbIgnore;
import cn.zhxu.bs.bean.SearchBean;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@SearchBean(
        tables = "tms_car"
)
public class CarVO {

    private Integer id;

    //车牌号
    private String carNumber;

    //绑定司机（ids）
    private String bindDriver;

    //绑定司机（姓名）
    @DbIgnore
    private String bindDriverName;

    //车辆类型
    private int carType;

    //能源类型
    private int energyType;

    //排放标准
    private int emissionStandard;

    //使用性质
    private int nature;

    //状态
    private int status;

    //承运商
    private String carrier;

    //车辆品牌
    private String brand;

    //车辆识别代号
    private String vin;

    //发动机号
    private String engineNo;

    //注册日期
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date registerDate;

    //发证日期
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date issueDate;

    //发证机关
    private String issueOrgan;

    //行驶证号
    private String drivingLicense;

    //核载人数
    private String capacity;

    //车长
    private String length;

    //车宽
    private String width;

    //车高
    private String height;

    //购买日期
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date purchaseDate;

    //道路运输证号
    private String roadTransportNumber;

    //道路经营许可证号
    private String roadOperationLicense;

    //车辆年检日期
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date annualInspectionDate;

    //气罐年检日期
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date gasInspectionDate;

    //强制报废日期
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date mandatoryScrappingDate;

    //行驶证照片
    private String drivingLicensePhoto;

    //营运证照片
    private String businessLicensePhoto;

    //道路运输证照片
    private String roadTransportPhoto;

    //道路经营许可证照片
    private String roadOperationLicensePhoto;

    //车辆照片
    private String carPhoto;

    //保险卡照片
    private String insurancePhoto;

}
